-
Notifications
You must be signed in to change notification settings - Fork 7.9k
added ldap_count_references() #5784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cc @MCMic |
fefa8a8
to
d8d088e
Compare
d8d088e
to
9081faa
Compare
This seems legit as there already is ldap_first_reference, ldap_next_reference, ldap_first_entry, ldap_next_entry and ldap_count_entries. |
This is quite off-topic, but I'll try to ask here. Yesterday I was studying the code of openldap and one thing seems little bit inconsistent between OpenLDAP and PHP ext-ldap. In OpenLDAP the ldapmsg struct is used for all LDAP messages including search result, entry, or reference. No matter, whether a given instance of In ext-ldap, a PHP resource of type |
@ptomulik I was not able to email you, I got «550 Denied by policy (in reply to end of DATA command)»
I guess the original authors of php-ldap thought it wiser to differentiate between an operation result and an entry, it seems convenient to me. About inferring whether it’s an entry or a reference, what’s the use case here? You should now what you asked for (entry or reference), no? |
Well, that's McAfee :)
|
Implemented
ldap_count_references()
for symmetry withldap_count_entries()
. This is actually just a copy-paste.Test: